//
//  RNOLMeNavgationBar.m
//  RongNiuOnline
//
//  Created by apple on 2018/4/20.
//  Copyright © 2018年 rongniu. All rights reserved.
//

#import "RNOLMeNavgationBar.h"

@interface RNOLMeNavgationBar ()

@property (weak, nonatomic) IBOutlet UIImageView *headerImgView;
@property (weak, nonatomic) IBOutlet UILabel *nickNameLabel;
@property (weak, nonatomic) IBOutlet UIButton *messageButton;


@end


@implementation RNOLMeNavgationBar

- (void)awakeFromNib{
    [super awakeFromNib];
    [self.headerImgView setAllCorner: self.headerImgView.width/2.0f];
    self.headerImgView.userInteractionEnabled = YES;
    [self.headerImgView addTapActionWithBlock:^(UIGestureRecognizer *gestureRecoginzer) {
        !self.headerClickBlock? : self.headerClickBlock();
    }];
}

//查看消息
- (IBAction)watchMessageAction:(UIButton *)sender {
    !self.messageBlock? : self.messageBlock();
}


@end
